define({ "api": [
  {
    "type": "Get",
    "url": "/Dormitory?method=getDormitory",
    "title": "查询宿舍情况",
    "name": "getDormitory",
    "group": "Dormitory",
    "description": "<p>根据指定字段查询或获取所有宿舍信息</p>",
    "version": "0.0.1",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "requestString",
            "description": "<p>请求字段</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "请求样例",
          "content": "{ \n\"DormID\":\"\", \n\"DormLocation\":\"\",\n\"IsOpen\":,\n\"WasherNumber\":, \n\"FreeNumber\": \n}",
          "type": "json"
        }
      ]
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "int",
            "optional": false,
            "field": "DormID",
            "description": "<p>宿舍ID</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "DormLocation",
            "description": "<p>宿舍位置（名称）</p>"
          },
          {
            "group": "Success 200",
            "type": "Boolean",
            "optional": false,
            "field": "IsOpen",
            "description": "<p>是否开放 0不开放 1开放</p>"
          },
          {
            "group": "Success 200",
            "type": "int",
            "optional": false,
            "field": "WasherNumber",
            "description": "<p>洗衣机数量</p>"
          },
          {
            "group": "Success 200",
            "type": "int",
            "optional": false,
            "field": "FreeNumber",
            "description": "<p>空余数量</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "返回样例",
          "content": "{\n'code':3010,\n'msg':'宿舍信息查询成功',\n'timestamp':'2019-06-08 20:09:34',\n'data':\n[\n {'DormID':10001,\n 'DormLocation':'甬江公寓四号楼',\n 'IsOpen':true,\n 'WasherNumber':5,\n 'FreeNumber':4},\n {'DormID':10002,\n 'DormLocation':'甬江公寓三号楼',\n 'IsOpen':true,\n 'WasherNumber':4,\n 'FreeNumber':2},\n {'DormID':10003,\n 'DormLocation':'甬江公寓二号楼',\n 'IsOpen':true,\n 'WasherNumber':5,\n 'FreeNumber':4},\n {'DormID':10004,\n 'DormLocation':'本部公寓四号楼',\n 'IsOpen':false,\n 'WasherNumber':2,\n 'FreeNumber':1}\n ]\n }",
          "type": "json"
        }
      ]
    },
    "filename": "src/com/Washer/DormitoryOperation.java",
    "groupTitle": "宿舍",
    "sampleRequest": [
      {
        "url": "http://47.96.159.236:8080/Wash/Dormitory?method=getDormitory"
      }
    ]
  },
  {
    "type": "Post",
    "url": "/Dormitory?method=insertDormitory",
    "title": "增加宿舍",
    "name": "insertDormitory",
    "group": "Dormitory",
    "description": "<p>商家添加宿舍信息 在宿舍对象中给需要的字段赋值</p>",
    "version": "0.0.1",
    "parameter": {
      "examples": [
        {
          "title": "请求样例",
          "content": "{ \n\"DormLocation\":\"本部公寓4号楼\",\n\"IsOpen\":true,\n\"WasherNumber\":5, \n\"FreeNumber\":5 \n}",
          "type": "json"
        }
      ]
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response: ",
          "content": "Success-Response: \n{\n'code':3030,\n'msg':'新增宿舍信息成功',\n'timestamp':'2019-06-08 20:16:51'\n}",
          "type": "json"
        }
      ],
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "int",
            "optional": false,
            "field": "code",
            "description": "<p>响应码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>响应信息</p>"
          },
          {
            "group": "Success 200",
            "type": "timestamp",
            "optional": false,
            "field": "timestamp",
            "description": "<p>时间戳</p>"
          }
        ]
      }
    },
    "filename": "src/com/Washer/DormitoryOperation.java",
    "groupTitle": "宿舍",
    "sampleRequest": [
      {
        "url": "http://47.96.159.236:8080/Wash/Dormitory?method=insertDormitory"
      }
    ],
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "110",
            "description": "<p>未知错误</p>"
          },
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "111",
            "description": "<p>反序列化错误</p>"
          },
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "112",
            "description": "<p>序列化错误</p>"
          },
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "3071",
            "description": "<p>洗衣机信息添加失败</p>"
          }
        ]
      }
    }
  },
  {
    "type": "Post",
    "url": "/Order?method=StudentConfirm",
    "title": "确认订单",
    "name": "StudentConfirm",
    "group": "Order",
    "description": "<p>学生确认订单信息  订单状态发生变化</p>",
    "parameter": {
      "examples": [
        {
          "title": "确认订单样例",
          "content": "{\n\"StuID\":10004,\n\"OrderID\":10006\n}",
          "type": "json"
        }
      ]
    },
    "success": {
      "examples": [
        {
          "title": "学生确认成功",
          "content": "{\n'code':5040,\n'msg':'学生确认成功',\n'timestamp':'2019-05-21 17:39:09'\n}",
          "type": "json"
        }
      ],
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "int",
            "optional": false,
            "field": "code",
            "description": "<p>响应码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>响应信息</p>"
          },
          {
            "group": "Success 200",
            "type": "timestamp",
            "optional": false,
            "field": "timestamp",
            "description": "<p>时间戳</p>"
          }
        ]
      }
    },
    "version": "0.0.0",
    "filename": "src/com/Order/VerifyState.java",
    "groupTitle": "订单",
    "sampleRequest": [
      {
        "url": "http://47.96.159.236:8080/Wash/Order?method=StudentConfirm"
      }
    ],
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "5041",
            "description": "<p>无需确认</p>"
          }
        ]
      }
    }
  },
  {
    "type": "Post",
    "url": "/Order?method=StudentPay",
    "title": "订单付款",
    "name": "StudentPay",
    "group": "Order",
    "description": "<p>学生付款后  订单状态发生变化</p>",
    "parameter": {
      "examples": [
        {
          "title": "付款订单样例",
          "content": "{\n\"StuID\":10004,\n\"OrderID\":10006\n}",
          "type": "json"
        }
      ]
    },
    "success": {
      "examples": [
        {
          "title": "付款成功",
          "content": "{\n'code':5060,\n'msg':'付款成功',\n'timestamp':'2019-05-21 17:39:09'\n}",
          "type": "json"
        },
        {
          "title": "付款失败",
          "content": "{\n 'code':5061,\n 'msg':'付款失败',\n 'timestamp':'2019-06-12 00:35:29'\n}",
          "type": "json"
        }
      ],
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "int",
            "optional": false,
            "field": "code",
            "description": "<p>响应码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>响应信息</p>"
          },
          {
            "group": "Success 200",
            "type": "timestamp",
            "optional": false,
            "field": "timestamp",
            "description": "<p>时间戳</p>"
          }
        ]
      }
    },
    "version": "0.0.0",
    "filename": "src/com/Order/VerifyState.java",
    "groupTitle": "订单",
    "sampleRequest": [
      {
        "url": "http://47.96.159.236:8080/Wash/Order?method=StudentPay"
      }
    ]
  },
  {
    "type": "Delete",
    "url": "/Order?method=StudentWithdraw",
    "title": "取消订单",
    "name": "StudentWithdraw",
    "group": "Order",
    "description": "<p>取消订单 恢复库存</p>",
    "parameter": {
      "examples": [
        {
          "title": "取消订单样例",
          "content": "{\n\"StuID\":10004,\n\"OrderID\":10006\n}",
          "type": "json"
        }
      ]
    },
    "success": {
      "examples": [
        {
          "title": "取消成功",
          "content": "{\n'code':5050,\n'msg':'撤销订单成功',\n'timestamp':'2019-05-21 17:39:09'\n}",
          "type": "json"
        }
      ],
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "int",
            "optional": false,
            "field": "code",
            "description": "<p>响应码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>响应信息</p>"
          },
          {
            "group": "Success 200",
            "type": "timestamp",
            "optional": false,
            "field": "timestamp",
            "description": "<p>时间戳</p>"
          }
        ]
      }
    },
    "version": "0.0.0",
    "filename": "src/com/Order/VerifyState.java",
    "groupTitle": "订单",
    "sampleRequest": [
      {
        "url": "http://47.96.159.236:8080/Wash/Order?method=StudentWithdraw"
      }
    ]
  },
  {
    "type": "Post",
    "url": "/Order?method=WashOver",
    "title": "提前洗衣结束",
    "name": "WashOver",
    "group": "Order",
    "description": "<p>学生提前结束洗衣</p>",
    "parameter": {
      "examples": [
        {
          "title": "提前结束请求样例",
          "content": "{\n\"StuID\":1004,\n\"OrderID\":10006\n}",
          "type": "json"
        }
      ]
    },
    "success": {
      "examples": [
        {
          "title": "返回样例",
          "content": "{\n'code':5080,\n'msg':'洗衣完成',\n'timestamp':'2019-05-22 14:16:13'\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "src/com/Order/WashinngState.java",
    "groupTitle": "订单",
    "sampleRequest": [
      {
        "url": "http://47.96.159.236:8080/Wash/Order?method=WashOver"
      }
    ]
  },
  {
    "type": "Post",
    "url": "/Order?method=getOrder",
    "title": "订单查询",
    "name": "getOrder",
    "group": "Order",
    "description": "<p>订单状态码说明 1 - 用户提交订单 2 - 用户确认 3 - 用户付钱 4 - 洗衣状态</p>",
    "parameter": {
      "examples": [
        {
          "title": "居民查询请求样例",
          "content": "{\n\"StuID\":10001,\n\"OrderStatus\":4\n}",
          "type": "json"
        }
      ]
    },
    "success": {
      "examples": [
        {
          "title": "请求成功样例",
          "content": "{\n'code':4000,\n'msg':'订单查询成功',\n'timestamp':'2019-06-08 22:08:42',\n'data':[\n{\n\t'OrderID':10001,\n\t'DormID':10001,\n\t'WasherID':10001,\n\t'StuID':10001,\n\t'OrderStatus':4,\n\t'OrderMoney':5,\n\t'OrderPattern':1,\n\t'VerCode':'1234',\n\t'CreateTime':'2019-06-06 00:16:16',\n\t'ConfirmTime':'2019-06-06 00:17:16',\n\t'PayedTime':'2019-06-06 00:18:16',\n\t'FinishedTime':'2019-06-06 01:16:16'\n\t},\n\t{\n\t'OrderID':10004,\n\t'DormID':10001,\n\t'WasherID':10002,\n\t'StuID':10001,\n\t'OrderStatus':4,\n\t'OrderMoney':5,\n\t'OrderPattern':1,\n\t'VerCode':'3452',\n\t'CreateTime':'2019-06-06 00:16:16',\n\t'ConfirmTime':'2019-06-08 16:17:34',\n\t'PayedTime':'2019-06-09 00:25:00',\n\t'FinishedTime':'2019-06-08 16:26:03'\n\t}\n]\n}",
          "type": "json"
        }
      ],
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "int",
            "optional": false,
            "field": "code",
            "description": "<p>响应码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>响应信息</p>"
          },
          {
            "group": "Success 200",
            "type": "timestamp",
            "optional": false,
            "field": "timestamp",
            "description": "<p>时间戳</p>"
          },
          {
            "group": "Success 200",
            "type": "ListOrders",
            "optional": false,
            "field": "orders",
            "description": "<p>订单列表</p>"
          }
        ]
      }
    },
    "version": "0.0.0",
    "filename": "src/com/Order/OrderInquire.java",
    "groupTitle": "订单",
    "sampleRequest": [
      {
        "url": "http://47.96.159.236:8080/Wash/Order?method=getOrder"
      }
    ],
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "4001",
            "description": "<p>没有找到订单</p>"
          }
        ]
      }
    }
  },
  {
    "type": "Insert",
    "url": "/Order?method=submit",
    "title": "用户提交订单",
    "name": "submit",
    "group": "Order",
    "description": "<p>用户提交订单</p>",
    "version": "0.0.1",
    "parameter": {
      "examples": [
        {
          "title": "提交订单请求样例",
          "content": "{ \n\t\"StuID\":10004,\n\t\"DormID\":10002,\n\t\"WasherID\":10006,\n\t\"OrderMoney\":5,\n\t\"OrderPattern\":1\n\t}",
          "type": "json"
        }
      ]
    },
    "success": {
      "examples": [
        {
          "title": "订单提交成功",
          "content": "{\n'code':5010,\n'msg':'提交订单成功',\n'timestamp':'2019-06-08 22:18:34',\n'data':\n{\n'OrderID':10006,\n'DormID':10002,\n'WasherID':10006,\n'StuID':10004,\n'OrderStatus':1,\n'OrderMoney':5,\n'OrderPattern':1,\n'VerCode':'0529',\n'CreateTime':'2019-06-08 22:18:33'\n}\n}",
          "type": "json"
        }
      ],
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "int",
            "optional": false,
            "field": "code",
            "description": "<p>响应码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>响应信息</p>"
          },
          {
            "group": "Success 200",
            "type": "timestamp",
            "optional": false,
            "field": "timestamp",
            "description": "<p>时间戳</p>"
          },
          {
            "group": "Success 200",
            "type": "Object",
            "optional": false,
            "field": "res",
            "description": "<p>订单对象</p>"
          }
        ]
      }
    },
    "filename": "src/com/Order/SubmitState.java",
    "groupTitle": "订单",
    "sampleRequest": [
      {
        "url": "http://47.96.159.236:8080/Wash/Order?method=submit"
      }
    ],
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "5013",
            "description": "<p>更新订单表失败</p>"
          }
        ]
      }
    }
  },
  {
    "type": "Insert",
    "url": "/Login?method=Register",
    "title": "用户注册",
    "description": "<p>@apiVersion 0.0.1</p>",
    "group": "User",
    "parameter": {
      "examples": [
        {
          "title": "学生注册请求样例 ",
          "content": "{\n   \"loginName\": \"mingmingming\",\n   \"password\": \"nihaoma\",\n   \"userIdentity\": 1,\n   \"StuPhone\":\"123124\"\n}",
          "type": "json"
        },
        {
          "title": "管理员注册请求样例 ",
          "content": "{\n   \"loginName\": \"mingmingming\",\n   \"password\": \"nihaoma\",\n   \"userIdentity\": 2,\n    \"AdminName\":\"12345\"\n}",
          "type": "json"
        }
      ]
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response: ",
          "content": "Success-Response: \n{ \n\"code\":1001, \n\"msg\":\"注册成功\",\n\"timestamp\":\"May 19, 2019, 8:50:20 PM\" \n}",
          "type": "json"
        }
      ],
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "int",
            "optional": false,
            "field": "code",
            "description": "<p>响应码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>响应信息</p>"
          },
          {
            "group": "Success 200",
            "type": "timestamp",
            "optional": false,
            "field": "timestamp",
            "description": "<p>时间戳</p>"
          }
        ]
      }
    },
    "version": "0.0.0",
    "filename": "src/com/User/UserOperation.java",
    "groupTitle": "登录",
    "name": "InsertLoginMethodRegister",
    "sampleRequest": [
      {
        "url": "http://47.96.159.236:8080/Wash/Login?method=Register"
      }
    ],
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "110",
            "description": "<p>未知错误</p>"
          },
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "111",
            "description": "<p>反序列化错误</p>"
          },
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "112",
            "description": "<p>序列化错误</p>"
          },
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "1002",
            "description": "<p>该用户民已经存在</p>"
          },
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "1003",
            "description": "<p>注册信息不完整</p>"
          },
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "1004",
            "description": "<p>密码过于简单</p>"
          }
        ]
      }
    }
  },
  {
    "type": "Insert",
    "url": "/Login?method=updateLoginName",
    "title": "用户修改登录名",
    "description": "<p>@apiVersion 0.0.1</p>",
    "group": "User",
    "parameter": {
      "examples": [
        {
          "title": "更改登录名请求样例",
          "content": "{\n\"userID\":10007,\n\"loginName\":\"mingmingming\" \n\"password\":\"nihaoma\",\n\"newLoginName\":\"123456\"\n}",
          "type": "json"
        }
      ]
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response: ",
          "content": "Success-Response: \n{ \n\"code\":1040, \n\"msg\":\"更新用户名成功\",\n\"timestamp\":\"May 19, 2019, 8:50:20 PM\" \n}",
          "type": "json"
        }
      ],
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "int",
            "optional": false,
            "field": "code",
            "description": "<p>响应码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>响应信息</p>"
          },
          {
            "group": "Success 200",
            "type": "timestamp",
            "optional": false,
            "field": "timestamp",
            "description": "<p>时间戳</p>"
          }
        ]
      }
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response: ",
          "content": "Error-Response: \n{ \n\"code\":1002, \n\"msg\":\"用户名已经存在\",\n\"timestamp\":\"May 19, 2019, 6:26:44 PM\"\n}",
          "type": "json"
        }
      ],
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "110",
            "description": "<p>未知错误</p>"
          },
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "111",
            "description": "<p>反序列化错误</p>"
          },
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "112",
            "description": "<p>序列化错误</p>"
          },
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "1002",
            "description": "<p>用户名已存在</p>"
          },
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "1041",
            "description": "<p>更新登录名失败</p>"
          },
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "1042",
            "description": "<p>输入的密码错误</p>"
          }
        ]
      }
    },
    "version": "0.0.0",
    "filename": "src/com/User/UserOperation.java",
    "groupTitle": "登录",
    "name": "InsertLoginMethodUpdateloginname",
    "sampleRequest": [
      {
        "url": "http://47.96.159.236:8080/Wash/Login?method=updateLoginName"
      }
    ]
  },
  {
    "type": "Insert",
    "url": "/Login?method=updatePassword",
    "title": "用户修改密码",
    "description": "<p>@apiVersion 0.0.1</p>",
    "group": "User",
    "parameter": {
      "examples": [
        {
          "title": "更改密码请求样例",
          "content": "{\n\"userID\":10007\n\"password\":\"nihaoma\",\n\"newpassword\":\"fffqqq\"\n}",
          "type": "json"
        }
      ]
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response: ",
          "content": "Success-Response: \n{ \n\"code\":1031, \n\"msg\":\"更新密码成功\",\n\"timestamp\":\"May 19, 2019, 8:50:20 PM\" \n}",
          "type": "json"
        }
      ],
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "int",
            "optional": false,
            "field": "code",
            "description": "<p>响应码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>响应信息</p>"
          },
          {
            "group": "Success 200",
            "type": "timestamp",
            "optional": false,
            "field": "timestamp",
            "description": "<p>时间戳</p>"
          }
        ]
      }
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response: ",
          "content": "Error-Response: \n{ \n\"code\":1031, \n\"msg\":\"原密码错误\",\n\"timestamp\":\"May 19, 2019, 6:26:44 PM\"\n}",
          "type": "json"
        }
      ],
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "110",
            "description": "<p>未知错误</p>"
          },
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "111",
            "description": "<p>反序列化错误</p>"
          },
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "112",
            "description": "<p>序列化错误</p>"
          },
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "1031",
            "description": "<p>原密码错误</p>"
          }
        ]
      }
    },
    "version": "0.0.0",
    "filename": "src/com/User/UserOperation.java",
    "groupTitle": "登录",
    "name": "InsertLoginMethodUpdatepassword",
    "sampleRequest": [
      {
        "url": "http://47.96.159.236:8080/Wash/Login?method=updatePassword"
      }
    ]
  },
  {
    "type": "Post",
    "url": "/Login?method=Login",
    "title": "登录",
    "name": "Login",
    "group": "User",
    "description": "<p>用户登录</p>",
    "version": "0.0.1",
    "parameter": {
      "examples": [
        {
          "title": "学生登录请求样例 ",
          "content": "{ \n\"loginName\":\"laolingjie\",\n\"password\":\"laolingjie\", \n\"userIdentity\":1 \n}",
          "type": "json"
        },
        {
          "title": "管理员登录请求样例 ",
          "content": "{\n\t\"loginName\": \"huanglingfeng\",\n\t\"password\": \"huanglingfeng\",\n\t\"userIdentity\": 2\n}",
          "type": "json"
        }
      ]
    },
    "success": {
      "examples": [
        {
          "title": "学生登录成功 ",
          "content": "{\n'code':2001,\n'msg':'学生用户登录成功',\n'timestamp':'2019-06-08 20:57:26',\n'data':\n\t{\n\t 'StuID':10001,\n\t 'UserID':10001,\n\t 'StuPhone':'110',\n\t 'StuMoney':666\n }\n}",
          "type": "json"
        },
        {
          "title": "管理员登录成功 ",
          "content": "{\n'code':2006,\n'msg':'管理员用户登录成功',\n'timestamp':'2019-06-11 11:18:14',\n'data':\n  { \n  'AdminID':1,\n  'UserID':10009,\n  'AdminName':'shuaige'\n  }\n}",
          "type": "json"
        }
      ],
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "int",
            "optional": false,
            "field": "code",
            "description": "<p>响应码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>响应信息</p>"
          },
          {
            "group": "Success 200",
            "type": "timestamp",
            "optional": false,
            "field": "timestamp",
            "description": "<p>时间戳</p>"
          },
          {
            "group": "Success 200",
            "type": "Object",
            "optional": false,
            "field": "res",
            "description": "<p>用户信息</p>"
          }
        ]
      }
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response: ",
          "content": "{ \n\"code\":2004, \n\"msg\":\"用户名或密码错误\",\n\"timestamp\":\"May 19, 2019, 6:26:44 PM\"\n}",
          "type": "json"
        }
      ],
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "110",
            "description": "<p>未知错误</p>"
          },
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "2004",
            "description": "<p>用户名或密码错误</p>"
          },
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "2005",
            "description": "<p>用户类别错误</p>"
          }
        ]
      }
    },
    "filename": "src/com/User/UserOperation.java",
    "groupTitle": "登录",
    "sampleRequest": [
      {
        "url": "http://47.96.159.236:8080/Wash/Login?method=Login"
      }
    ]
  },
  {
    "type": "Get",
    "url": "/Washer?method=getWasher",
    "title": "查询宿舍洗衣机情况",
    "name": "getWasher",
    "group": "Washer",
    "description": "<p>根据指定字段查询或获取所有洗衣机信息（某个宿舍）</p>",
    "version": "0.0.1",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "requestString",
            "description": "<p>请求字段</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "请求样例",
          "content": "{ \n \"DormID\":10001\n}",
          "type": "json"
        }
      ]
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "int",
            "optional": false,
            "field": "WasherID",
            "description": "<p>洗衣机ID</p>"
          },
          {
            "group": "Success 200",
            "type": "int",
            "optional": false,
            "field": "DormID",
            "description": "<p>宿舍ID</p>"
          },
          {
            "group": "Success 200",
            "type": "Boolean",
            "optional": false,
            "field": "IsFree",
            "description": "<p>是否空闲 0被占 1空闲</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "返回样例",
          "content": "{'code':3050,\n'msg':'洗衣机信息查询成功',\n'timestamp':'2019-06-08 20:23:37',\n'data':\n[\n {\n 'WasherID':10003,\n 'DormID':10001,\n 'IsFree':false\n },\n {\n 'WasherID':10001,\n 'DormID':10001,\n 'IsFree':true\n },\n {\n 'WasherID':10002,\n 'DormID':10001,\n 'IsFree':true\n },\n {\n 'WasherID':10004,\n 'DormID':10001,\n 'IsFree':true\n },\n {\n 'WasherID':10005,\n 'DormID':10001,\n 'IsFree':true\n }\n ]\n }",
          "type": "json"
        }
      ]
    },
    "filename": "src/com/Washer/WasherOperation.java",
    "groupTitle": "洗衣机",
    "sampleRequest": [
      {
        "url": "http://47.96.159.236:8080/Wash/Washer?method=getWasher"
      }
    ]
  },
  {
    "type": "Post",
    "url": "/Washer?method=insertWasher",
    "title": "增加洗衣机",
    "name": "insertWasher",
    "group": "Washer",
    "description": "<p>商家添加洗衣机信息 在洗衣机对象中给需要的字段赋值</p>",
    "version": "0.0.1",
    "parameter": {
      "examples": [
        {
          "title": "请求样例",
          "content": "{ \n\"DormID\":10005,\n\"IsFree\":true\n}",
          "type": "json"
        }
      ]
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response: ",
          "content": "Success-Response: \n{\n'code':3050,\n'msg':'洗衣机信息查询成功',\n'timestamp':'2019-06-08 20:52:44'\n}",
          "type": "json"
        }
      ],
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "int",
            "optional": false,
            "field": "code",
            "description": "<p>响应码</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>响应信息</p>"
          },
          {
            "group": "Success 200",
            "type": "timestamp",
            "optional": false,
            "field": "timestamp",
            "description": "<p>时间戳</p>"
          }
        ]
      }
    },
    "filename": "src/com/Washer/WasherOperation.java",
    "groupTitle": "洗衣机",
    "sampleRequest": [
      {
        "url": "http://47.96.159.236:8080/Wash/Washer?method=insertWasher"
      }
    ],
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "110",
            "description": "<p>未知错误</p>"
          },
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "111",
            "description": "<p>反序列化错误</p>"
          },
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "112",
            "description": "<p>序列化错误</p>"
          },
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "3071",
            "description": "<p>洗衣机信息添加失败</p>"
          }
        ]
      }
    }
  }
] });
